package com.zmn.oms.services.impl.callrecord;

import com.zmn.oms.model.entity.callrecord.OrderCallRecord;
import com.zmn.oms.persistence.interfaces.callrecord.OrderCallRecordDao;
import com.zmn.oms.services.interfaces.callrecord.OrderCallRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * @author ：SongWeidong
 * @date ：2020/7/29 18:04
 * @description：通话记录
 */
@Service
public class OrderCallRecordServiceImpl implements OrderCallRecordService {

    @Resource
    OrderCallRecordDao orderCallRecordDao;

    @Override
    public OrderCallRecord findOrderRecordByKey(Long callRecordId) {
        return orderCallRecordDao.findOrderRecordByKey(callRecordId);
    }

    @Override
    public Date findFirstStartTime(Long orderId) {
        return orderCallRecordDao.findFirstStartTime(orderId);
    }

    @Override
    public List<OrderCallRecord> listOrderCallRecordByOrderId(Long orderId) {
        return orderCallRecordDao.listOrderCallRecordByOrderId(orderId);
    }

    @Override
    public void insertOrderCallRecord(OrderCallRecord orderCallRecord) {
        orderCallRecordDao.insertOrderCallRecord(orderCallRecord);
    }

    @Override
    public void insertOrderCallRecordList(List<OrderCallRecord> orderCallRecordList) {
        orderCallRecordDao.insertOrderCallRecordList(orderCallRecordList);
    }


}
